﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace CorreoSocialWeb.Models
{
    [System.ComponentModel.DataAnnotations.Schema.Table("Partidos")]
    public class Partido
    {
        [Key]
        public int Id { get; set; }
        public string Nombre { get; set; }

        [System.ComponentModel.DataAnnotations.Schema.ForeignKey("Provincia")]
        public int ProvinciaId { get; set; }

        [Association("Provincia", "ProvinciaId", "Id")]
        public Provincia Provincia { get; set; }
    }
}